package Reflect;

public class Test1 {
    private int a;//禁止访问
    protected int b;//保护访问
    int c;//默认访问
    public int d;//公开访问
    public int []f;
    public Test1(){
        a=1;b=2;
        c=3;d=4;
        f = new int[3];
    }
    public Test1(int a){
        this.a=a;f = new int[3];
    }
    public Test1(int a,int f[]){
        this.a = a;
        this.f = f;
    }
    public void print(){
        System.out.println(a);
        for(int n:f){
            System.out.println(n);
        }
    }
    public void printWithOneIntOneStringParm(int p,String s){
        System.out.println(a);
        for(int n:f){
            System.out.println(n);
        }
        System.out.println(p+s);
    }
    private void print1(){
        System.out.println(1);
    }
    protected void print2(){
        System.out.println(2);
    }
    void print3(){
        System.out.println(3);
    }
    public void print4(){
        System.out.println(4);
    }
}
